package com.jack006.api.controller.article;

import com.jack006.api.config.MyServiceList;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname ArticleControllerApi
 * @Description 文章业务
 * @Date 2021-07-05 20:49
 * @Created by jack
 */
@Api(value = "静态化文章业务的 controller",tags = "静态化文章业务的 controller")
@RequestMapping("article/html")
@FeignClient(value = MyServiceList.SERVICE_ARTICLE_HTML, qualifier="articleHtmlControllerApi")
public interface ArticleHtmlControllerApi {


    @ApiOperation(value = "下载 html",notes = "下载 html",httpMethod = "GET")
    @GetMapping("/download")
    Integer download(@RequestParam("articleId") String articleId,
                 @RequestParam("articleMongoId") String articleMongoId) throws Exception;


    @GetMapping("/delete")
    @ApiOperation(value = "删除html", notes = "删除html", httpMethod = "GET")
    Integer delete(@RequestParam("articleId") String articleId);
}


